<div class="panel panel-default">
  <!-- Default panel contents -->
  <div class="panel-heading">巡展-线下活动费用
  </div>
  <table class="table table-bordered">
    <thead>
      <tr>
        <th class="bg-primary text-center">流水号</th>
        <th class="bg-primary text-center">活动地址</th>
        <th class="bg-primary text-center">活动时间段</th>
        <th class="bg-primary text-center">预算费用</th>
        <th class="bg-primary text-center">明细</th>
        <th class="bg-primary text-center">实际费用</th>
        <th class="bg-primary text-center">审核结果</th>
        <?php if (in_array($action, array('audit'))) {?>
        <th class="bg-primary text-center">操作</th>
        <?php } ?>
      </tr>
    </thead>
    <tbody>
    <?php foreach($offlineList as $k => $v): ?>
      <tr>
        <td class="text-center"><?php echo $v['costNo']; ?></td>
        <td class="text-center"><?php echo $v['activityAddress']; ?></td>
        <td class="text-center"><?php echo $v['activityTime'] ?></td>
        <td class="text-center"><?php echo $v['budgetApply'] ?></td>
        <td class="text-center">
            <button type="button" onclick="newWindow('查看活动明细', '<?=printUrl('XunPOffline','detailCheck', array('offlineCostNo'=>$v['costNo'],'checkType'=>'settle'))?>', 800, 400)" class="btn btn-default">查看</button>
        </td>
        <td class="text-center"><?php echo $v['settleApply'] ?></td>
        <td class="text-center"><?php echo $v['settleAuditStr'] ?></td>
        <?php if (in_array($action, array('audit'))) {?>
        <td class="text-center">
          <?php
          $options = $this->config->item('settleAuditOptions');
          $extra = ' class="form-control" ';
          echo form_dropdown('offline['.$v['costNo'].'][settleAuditRs]', $options, $v['settleAuditRs'], $extra);
          ?>
        </td>
        <?php } ?>
      </tr>
    <?php endforeach; ?>
    </tbody>
  </table>
</div>